<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
	class Login extends CI_Controller
	{
		public function __construct()
		{
            parent::__construct();
            define("LOGIN_VIEW_URL", "login/login");
			define("LOGIN_VIEW_TITLE", "Login");
			define("LOGIN_VIEW_LOGGED_TITLE", "Welcome");
		}
		
		public function show_login()
		{
			$dataObj = new DataObject();
			$dataObj->SetTitle(LOGIN_VIEW_TITLE);
			$dataObj->SetContent(LOGIN_VIEW_URL);
			
			if($this->login_model->IsLoggedIn())
			{
				$dataObj->SetTitle(LOGIN_VIEW_LOGGED_TITLE);
			}
			
			$this->load->view(index_page(), array($dataObj->GetName() => $dataObj));
		}
	}